package com.ruoyi.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ruoyi.system.dto.design.DesignDTO;
import com.ruoyi.system.dto.design.DesignQueryDTO;
import com.ruoyi.system.vo.design.DesignProjectLogVo;
import com.ruoyi.system.vo.design.DesignProjectVO;

/**
 * 设计服务接口
 */
public interface DesignService {


    boolean createDesign(DesignDTO designDTO);


    IPage<DesignProjectVO> getPageList(DesignQueryDTO query);


    DesignDTO getDesignById(Long id);


    boolean deleteDesign(Long id);

    boolean updateDesign(Long id, DesignDTO designDTO);

    /**
     * 生成设计编号
     *
     * @return 设计编号
     */
    String generateUniqueDesignNo();


    /**
     * 设计详情
     * @param id
     * @return
     */
    DesignProjectLogVo getDesignDetailsByUserId(Long id);
}
